<template>
  <div class="legal-aid">
    <div class="menu-block">
      <div class="menu-item" v-for="(item,index) in menuList" :key="index">
        <div class="count">{{item.count}}</div>
        <div class="unit">{{item.unit}}</div>
      </div>
    </div>
    <div class="legal-block">
      <div class="legal-item" v-for="item in list" :key="item.id">
        <img :src="item.img" alt="" class="legal-img">
        <div class="label-info">
          <div class="name">{{item.name}}</div>
          <div class="phone">{{item.unit}}</div>
          <div class="phone">{{item.phone}}</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "LegaAid",
  data(){
    return{
      menuList:[{count:456,unit:'总咨询量'},
        {count:128,unit:'今日咨询量'},
        {count:56,unit:'本月成功援助'},
        {count:2,unit:'在线律师'},],
      list:[{id:1,img:'https://police-station-1306862033.cos.ap-chengdu.myqcloud.com/jinquan/teamBuilding/jianchayuan/驻社区公职律师（王晋双）.jpg',name:'王晋双',unit:'驻社区公职律师',phone:'182****2023'},
        {id:2,img:'https://police-station-1306862033.cos.ap-chengdu.myqcloud.com/jinquan/teamBuilding/tiaojieyuan/律师（张丹）.jpg',name:'张丹',unit:'律师',phone:'182****2023'}]
    }
  }
}
</script>

<style scoped lang="scss">
.legal-aid{
  width: 100%;
  height: 100%;
  .menu-block{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    .menu-item{
      background: #0d1d30;
      width: calc(50% - 8px);
      margin-bottom: 15px;
      padding: 10px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      .count{
        font-family: '冷酷体';
        color: #0AA7FF;
        font-size: 27px;
        margin-bottom: 5px;
      }
      .unit{
        font-size: 12px;
        color: white;
      }
    }
  }
  .legal-block{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 20px;
    .legal-item{
      background: #06213b;
      width: calc(50% - 8px);
      margin-bottom: 15px;
      padding: 10px;
      display: flex;
      align-items: center;
      border: 1px solid #32b4ff;
      border-radius: 10px;
      .legal-img{
        width: 70px;
        height: 90px;
        margin-right: 5px;
        border-radius: 4px;
      }
      .label-info{
        color: white;
        .name{
          font-family: '冷酷体';
          font-size: 15px;
          margin-bottom: 10px;
        }
        .phone{
          font-size: 12px;
          margin-top: 5px;
        }
      }
    }
  }
}
</style>
